package at.fhooe.mc.msports.ui;

import net.rim.device.api.ui.component.ButtonField;

public class CustomizedButton extends ButtonField{

	private int width;
	private int height;
	
    public CustomizedButton(long style) {
    	super(style);

    }
    
    public void setWidth(int w){
    	this.width = w;
    }
    
    public void setHeight(int h){
    	this.height = h;
    }
    
    protected void layout(int width, int height) {
    	setExtent(this.width,this.height);
    	super.layout(this.width,this.height);
        }

    public int getPreferredWidth() {
    	return this.width;
    }

    public int getPreferredHeight() {
        	return this.height;
    }
    
}
